
import request from '@/utils/request'

const formApi = {

  /**
   * 文件删除
   */
  deleteFileOrImage(file) {
    return request({
      url: '/file/file/delete',
      method: 'get',
      params: {
        'path' : file
      }
    })
  },
  /**
   * 图片预览
   */
  readerImage(path) {
    return request({
      url: '/file/file/reader',
      method: 'get',
      params: {
        'path' : path
      }
    })
  },

  /**
   * 文件上传
   */
  // uploadFileOrImage(file) {
  //   return request({
  //     // url: 'http://192.168.0.188:37318/file/upload',
  //     url: '/file/file/upload',
  //     method: 'post',
  //     data: file
  //   })
  // },

}

export default formApi
